package com.lx.note.mapper;

import com.lx.note.entity.UserBO;
import com.lx.note.entity.UserRegisterDTO;
import org.apache.ibatis.annotations.SelectKey;
import org.apache.ibatis.mapping.StatementType;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2018/5/23 0023.
 */
@Repository
public interface UserMapper {

    /**
     * 通过用户名 查询用户信息
     * @param name
     * @return
     */
    UserBO getUserBOByName(String name);

    /**
     * 保存注册用户信息,并返回更新的条数
     * @param userRegistDTO
     * @return
     */
    int saveRegistUserAndGetId(UserRegisterDTO userRegistDTO);



}
